package com.yjh.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Feedback {
    @TableId(type = IdType.AUTO)
    private Integer feedbackId;

    @TableField("user_id") // 外键，关联用户表
    private Integer userId;

    @TableField("feedback_content")
    private String feedbackContent;

    @TableField("feedback_status")
    private Integer feedbackStatus; // 0=未处理，1=已处理

    @TableField("reply_content")
    private String replyContent;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("reply_time")
    private LocalDateTime replyTime;
}
